package com.bonc.rms.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.bonc.rms.dao.StudentDao;
import com.bonc.rms.mapper.StudentMessageMapper;

@Repository
public class StudentDaoImpl implements StudentDao {

    @Autowired
    StudentMessageMapper studentMessageMapper;
    
    
	@Override
	public List<Map<String, Object>> inform(Integer UserId) {
		 List<Map<String, Object>> informList = null;
		 informList = studentMessageMapper.getAllMessageInfo(UserId,1);
		return informList;
	}

    @Override
    public List<Map<String, Object>> task(Integer UserId) {
        List<Map<String, Object>> listmap = null;
        listmap = studentMessageMapper.getAllMessageInfo(UserId,2);
         
        return listmap;
    }

    @Override
    public List<Map<String, Object>> weekToDo(Integer UserId) {
        List<Map<String, Object>> weekToDoList = null;
        weekToDoList = studentMessageMapper.getAllMessageInfo(UserId,3);
         
        return weekToDoList;
    }

    
    @Override
    public List<Map<String, Object>> needExam(Integer UserId) {
        List<Map<String, Object>> needExamList = null;
        needExamList = studentMessageMapper.getneedExam(UserId);
         
        return needExamList;
    }
  
}
